package com.entity;

import java.util.Date;
import java.util.List;

public class Orders {

    /**
     * 订单状态 - 未付款
     */
    public static final byte STATUS_UNPAY = 1;
    /**
     * 订单状态 - 已付款
     */
    public static final byte STATUS_PAYED = 2;
    /**
     * 订单状态 - 配送中
     */
    public static final byte STATUS_SEND = 3;

    /**
      * 订单状态 - 已收货（待评论）
     */
    public static final byte STATUS_RECEIVE = 4;
    /**
     * 订单状态 - 已完成
     */
    public static final byte STATUS_FINISH = 5;
    /**
     * 支付方式 - 微信
     */
    public static final byte PAYTYPE_WECHAT = 1;
    /**
     * 支付方式 - 支付宝
     */
    public static final byte PAYTYPE_ALIPAY = 2;
    /**
     * 支付方式 - 积分
     */
    public static final byte PAYTYPE_OFFLINE = 3;

    private int id;

    private int total;

    private int amount;

    private byte status;

    private byte paytype;

    private String name;

    private String phone;

    private String address;

    private Date systime;

    private int userId;

    private String username;

    private String dingdanInfo;

    private Users user;

    private List<Items> itemList;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getDingdanInfo() {
        return dingdanInfo;
    }

    public void setDingdanInfo(String dingdanInfo) {
        this.dingdanInfo = dingdanInfo;
    }

    public Users getUser() {
        return user;
    }

    public void setUser(Users user) {
        this.user = user;
    }

    public List<Items> getItemList() {
        return itemList;
    }

    public void setItemList(List<Items> itemList) {
        this.itemList = itemList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public byte getStatus() {
        return status;
    }

    public void setStatus(byte status) {
        this.status = status;
    }

    public byte getPaytype() {
        return paytype;
    }

    public void setPaytype(byte paytype) {
        this.paytype = paytype;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }
    public Date getSystime() {
        return systime;
    }
    public void setSystime(Date systime) {
        this.systime = systime;
    }
    public int getUserId() {
        return userId;
    }
    public void setUserId(int userId) {
        this.userId = userId;
    }
}